package com.zjh.jpa.repository;


import com.zjh.jpa.entity.QTalk;
import com.zjh.jpa.entity.Talk;
import org.springframework.data.jpa.repository.JpaRepository;
import com.querydsl.core.types.dsl.*;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import java.util.List;



public interface TalkQueryDslRepository extends JpaRepository<Talk, Long>, QuerydslPredicateExecutor<Talk> {

   /* default List<Talk> findUsersByUsername(String username) {
        //from去处应该是jpaQeuryFactory的from吧
        QTalk qTalk = QTalk.talk;
        StringPath usernamePath = Expressions.stringPath(qTalk, "username");
        return from(qTalk)
                .where(usernamePath.eq(username))
                .fetch();
    }*/
}

